<!--
Canvas 绘制
-->

<!DOCTYPE html>

<html>
<head>
<meta charset="UTF-8">
<title>Canvas 绘制</title>
</head>

<body>

<canvas id="myCanvas" width="200" height="100" style="border:1px solid #000000"></canvas>


<script type="text/javascript">

var c   = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
/*
ctx.fillStyle="#FF0000";
ctx.fillRect(0,0,150,75);
*/

ctx.font="30px Arial";
ctx.strokeText("Hello World",10,50);

</script>



</body>

</html>